import request from '@/utils/request'

// 查询档案入库档案盒列表
export function listStorageBox(query) {
  return request({
    url: '/archive/storageBox/list',
    method: 'get',
    params: query
  })
}

// 查询档案入库档案盒详细
export function getStorageBox(id) {
  return request({
    url: '/archive/storageBox/' + id,
    method: 'get'
  })
}

// 新增档案入库档案盒
export function addStorageBox(data) {
  return request({
    url: '/archive/storageBox',
    method: 'post',
    data: data
  })
}

// 修改档案入库档案盒
export function updateStorageBox(data) {
  return request({
    url: '/archive/storageBox',
    method: 'put',
    data: data
  })
}

// 删除档案入库档案盒
export function delStorageBox(id) {
  return request({
    url: '/archive/storageBox/' + id,
    method: 'delete'
  })
}
